package com.jiasongfan.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class Menu {

    private  Integer id;
    @JsonProperty("text")  //返回前端时叫text
    private String name;

    @JsonProperty("href")
    private String url;


    private Integer pid;

    @JsonProperty("nodes") //返回前端时改为nodes
    private List<Menu> menuList;

    public List<Menu> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<Menu> menuList) {
        this.menuList = menuList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
}
